package com.newasia.server.serviceImpl;

import com.newasia.server.common.tool.SpringUtil;
import com.newasia.server.dal.entitys.History;
import com.newasia.server.dal.entitys.paramValue.HistoryParam;
import com.newasia.server.dal.persistence.HistoryMapper;
import com.newasia.server.service.IHistoryService;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author LiChong
 * @description 历史记录服务
 * @date 2020/5/22
 */

@Service
public class HistoryServiceImpl implements IHistoryService {

    HistoryMapper historyMapper = SpringUtil.getBean(HistoryMapper.class);

    @Override
    public List<History> count(String sid,Long moduleId) {
        HistoryParam param = new HistoryParam();
        param.setSid(sid);
        param.setModuleId(moduleId);
        return historyMapper.count(param);
    }
}
